<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit"/>
    <title>{block name="title"} 敏捷开发管理系统-太阳软件{/block}</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    {include file="common/head_css" /}
    {:load_res('js','20180303',['/static/js/jquery/jquery.min.js','/static/admin/js/gdbase.js'])}
    <script>
        gdbase.site = {
            'version': "{:config('site.build')}",
            'static_path': "{:config('site.static_path')}",
            'assets_path': "{:config('site.assets_path')}"
        };
        gdbase.api.uploadUrl = "{:url('Upload/upload')}";
        gdbase.api.uploadCheckFilemd5Url = "{:url('Upload/check_file_md5')}";
        gdbase.api.umEditorConfigUrl = "{:url('Index/get_umeditor_config')}";
        gdbase.api.selectPhotoUrl = "{:url('/admin/index/select_photo')}";
        window.UMEDITOR_HOME_URL = gdbase.site.static_path + '/umeditor/1.2.3/';
    </script>
    {block name="style"}{/block}
</head>
<body class="skin-blue sidebar-mini fixed">
<!-- Site wrapper -->
<div class="wrapper">
    <header class="main-header">
        <!-- Logo -->
        <a href="" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>G</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>Gida</b>Base</span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"></a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    {if(!empty($myProjectList))}
                    <li class="dropdown notifications-menu">
                        <a id="drop1" href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                            当前项目：{$baseProjectName}
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu" aria-labelledby="drop1">
                            {volist name="$myProjectList" id="v"}
                            <li><a href="javascript:changeProject({$v['id']});">{$v['name']}</a></li>
                            {/volist}
                        </ul>
                    </li>
                    {else /}
                    <li>
                        <a href="javascript:;">
                            当前项目：{$baseProjectName}
                        </a>
                    </li>
                    {/if}
                    <li>
                        <a href="javascript:clearCache();">
                            <i class="fa fa-trash-o"></i>
                            <span>清除缓存</span>
                        </a>
                    </li>
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/static/admin/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs">{:session('admin_auth.admin_username')}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="/static/admin/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                                <p>
                                    {:session('admin_auth.admin_realname')}
                                </p>
                                <p>
                                    {:session('admin_auth.admin_username')}
                                </p>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="{:url('admin/Admin/profile')}" class="btn btn-default btn-flat">我的</a>
                                </div>
                                <div class="pull-right">
                                    <a href="{:url('admin/Login/logout')}" class="btn btn-default btn-flat">登出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>

    <!-- =============================================== -->
    <!-- 菜单栏开始 -->
    {include file='common:left_nav' /}
    <!-- 菜单栏结束 -->
    <!-- =============================================== -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <!--页面标题-->
                {block name="page_title"}页面标题{/block}
            </h1>
            <ol class="breadcrumb" style="display:none;">
                {block name="page_breadcrumb"}
                <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> 仪表盘</a></li>
                <li><a href="javascript:;">Examples</a></li>
                <li class="active">Pace page</li>
                {/block}
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <!-- Default box -->
            {block name="content"}{/block}
            <!-- /.box -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> {:config('site.version')}
        </div>
        <strong> &copy; {:date('Y')} 太阳软件 GidaSoft Inc.</strong>
    </footer>
</div>
<!-- ./wrapper -->
{include file="common/footer_js" /}
<!-- page script -->
{block name="script"}{/block}
</body>
</html>
